package org.edu.modules.jxzy.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.edu.modules.jxzy.config.ConfigConstant;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.edu.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 仓库出入库记录表
 * @Author: jeecg-boot
 * @Date:   2021-04-14
 * @Version: V1.0
 */
@Data
@TableName("ve_jw_jiaocai_log")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="ve_jw_jiaocai_log对象", description="仓库出入库记录表")
public class JwJiaocaiLog implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Integer id;
	/**教材Id*/
	@Excel(name = "教材Id", width = 15)
    @ApiModelProperty(value = "教材Id")
    @Dict(dictTable =  "ve_jw_jiaocai",dicCode = "id",dicText = "JCMC")
    private Integer jcid;
	/**仓库Id*/
	@Excel(name = "仓库Id", width = 15)
    @ApiModelProperty(value = "仓库Id")
    @Dict(dictTable =  "ve_jw_cangku",dicCode = "id",dicText = "name")
    private Integer ckid;
	/**班级ID*/
	@Excel(name = "班级ID", width = 15)
    @ApiModelProperty(value = "班级ID")
    private Integer bjid;
	/**操作类型 1：入库 2：出库*/
	@Excel(name = "操作类型 1：入库 2：出库", width = 15)
    @ApiModelProperty(value = "操作类型 1：入库 2：出库")
    @Dict(dicCode = "material_operation")
    private Integer type;
	/**出入库数量*/
	@Excel(name = "出入库数量", width = 15)
    @ApiModelProperty(value = "出入库数量")
    private Integer num;
	/** 操作时间*/
	@Excel(name = " 操作时间", width = 15)
    @ApiModelProperty(value = " 操作时间")
    private Integer addtime;
	/**经办用户id*/
	@Excel(name = "经办用户id", width = 15)
    @ApiModelProperty(value = "经办用户id")
    private Integer adduserid;
	/**操作人*/
	@Excel(name = "操作人", width = 15)
    @ApiModelProperty(value = "操作人")
    private String addusername;
	/**如果入库的有订单号，则标注订单号*/
	@Excel(name = "如果入库的有订单号，则标注订单号", width = 15)
    @ApiModelProperty(value = "如果入库的有订单号，则标注订单号")
    private String orderid;
	/**入库日期*/
	@Excel(name = "入库日期", width = 15)
    @ApiModelProperty(value = "入库日期")
    private String adddate;
	/**经办人*/
	@Excel(name = "经办人", width = 15)
    @ApiModelProperty(value = "经办人")
    private String adduser;
	/**备注*/
	@Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String memo;
	/**终端id*/
	@Excel(name = "终端id", width = 15)
    @ApiModelProperty(value = "终端id")
    private Integer terminalid;
	/**供应商ID*/
	@Excel(name = "供应商ID", width = 15)
    @ApiModelProperty(value = "供应商ID")
    @Dict(dictTable =  "ve_jw_jiaocai_supplier",dicCode = "id",dicText = "name")
    private Integer supplierid;


	@TableField(exist = false)
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date time;
}
